const config = require('./config');

const tcp = require('./utils/tcp-utils');
const http = require('./utils/http-utils');

let tcpServe = new tcp('6667');
let httpClient = new http(config.httpUrl());

//开启TCP服务
tcpServe.tcpStart(() => { console.log('TCP Server 开启成功'); });
// 根据不同的设备工控机实例化各自的子类，例如我要做蛋糕机的工控机先实例化蛋糕机的子类

// const cake = require('./cake');
// const cakeMachine = new cake(httpClient, tcpServe);

const hotPotRice = require('./hotPotRice')
const hotPotRiceMachine = new hotPotRice(httpClient, tcpServe)


